<%--
    Document   : Home
    Created on : Dec 7, 2013, 4:23:49 PM
    Author     : Prasetyawan
--%>

<%@page import="Bean.BarangPesan"%>
<%@page import="Bean.BarangPesan"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="Bean.Barang"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            BarangPesan BarangPesan = new BarangPesan();
            List<BarangPesan> dataBarang = BarangPesan.viewdaftarpesanan();
        %>
        Data Pesanan Barang : 
        <table border="1">
            <tr>
                <td>Nama Toko</td>
                <td>Kode Toko</td>
                <td>Kode Barang</td>
                <td>Nama Barang</td>
                <td>Jenis Barang</td>
                <td>Jumlah Barang</td>
                <td>Harga Barang</td>
            <tr/>

            <tr>
                <%
                    for (BarangPesan brg : dataBarang) {
                %>
                <td><%=brg.getNamaToko() %></td>
                <td><%=brg.getKodeToko() %></td>
                <td><%=brg.getKodeBarang() %></td>
                <td><%=brg.getNamaBarang() %></td>
                <td><%=brg.getJenisBarang() %></td>
                <td><%=brg.getJumlahBarang() %></td>
                <td><%=brg.getHargaBarang() %></td>

            </tr>
            <%
                        }
            %>
        </table>
    </body>
</html>
